file(GLOB SRC ${CMAKE_CURRENT_SOURCE_DIR}/core/*.c)          # ./   表示当前 cmakelist.txt所在目录下
file(GLOB SRC_ASM ${CMAKE_CURRENT_SOURCE_DIR}/port/*.S)          # ./   表示当前 cmakelist.txt所在目录下
file(GLOB PORT_C ${CMAKE_CURRENT_SOURCE_DIR}/port/*.c)     

include_directories(include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/port)

SET(LIBRARY_OUTPUT_PATH ${LIB_PATH})
add_library(freertos STATIC ${SRC} ${SRC_ASM} ${PORT_C})
